
<%if @project.setup_required? %>
<div class="message">
	<div id="setup_required">
	You have a little more setup to do before this enotify site will generate bug reports. Here's what you need to do:

	<ol>
		<%if !@project.has_teams? %>
			<li> You need to <%= link_to('add at least 1 Team', :id => @project.id, :controller => :teams, :action => :new) %>. 			
			</li> 
		<% end -%>
		<%if !@project.has_bug_lists? %>
			<li> You need to <%= link_to('add at least 1 Bug List', :id => @project.id, :controller => :bug_lists, :action => :new) %>.</li>
		<% end %>
		<li> That's it!</li>
	</ol>
	Once you're done, you need to activate the site before it will generate bug reports. Click Edit, and
	set active to "True" 
	
	</div>
</div>
<% end -%>

<%if !@project.setup_required? && false == @project.active %>
<div class="message">
	<div id="inactive_site">
		This site is currently inactive. That means it will not generate any bug reports. This is a good thing
		if you don't need the bug reports to update because it frees up resources and allows other sites to update 
		faster.
		<br><br>
		If you want this site to generate click "Edit", and set Active to "True".
		
	</div>
	</div>
<% end -%>

<%= render :active_scaffold => 'projects', :constraints => {:id => @project.id} -%>

<script>
document.getElementById('mod_actions').innerHTML = '';

<% if !@project.is_logged_in_project_administrator? %>

document.getElementById('projects-edit-<%= @project.id.to_s %>-link').innerHTML = '';
<% end -%>

</script>



